﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pechovic.CommandLine;

namespace Example1 {

    public class ExampleParams : InputParams {

        private string firstParam;
        private string secondParam;
        private string lastOptionalParam;

        public ExampleParams(Type exception)
            : base(exception) {
        }

        [InputParam(IsRequired=true, HelpText="This is the first parameter.")]
        public string FirstParam {
            get {
                return firstParam;
            }
            set {
                firstParam = value;
            }
        }

        [InputParam(IsRequired = true, HelpText = "This is the second parameter.")]
        public string SecondParam {
            get {
                return secondParam;
            }
            set {
                secondParam = value;
            }
        }

        [InputParam(IsRequired = false, HelpText = "This is the lase parameter.", DefaultValue="something")]
        public string LastOptionalParam {
            get {
                return lastOptionalParam;
            }
            set {
                lastOptionalParam = value;
            }
        }

    }

}
